package com.feige.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feige.pojo.DataFile;
import com.feige.result.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 资料 服务类
 * </p>
 *
 * @author feige
 * @since 2021-03-08
 */
public interface DataFileService extends IService<DataFile> {

    /**
     * 上传文件到oss并且把数据存入数据库
      * @param file
     * @param dataFile
     * @return
     * @throws IOException
     */
    AjaxResult uploadAndSave(MultipartFile file, DataFile dataFile) throws IOException;

}
